package com.neusoft.ysu.npms.mapper;

import com.neusoft.ysu.npms.pojo.Applypoor;
import com.neusoft.ysu.npms.pojo.Approval;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.ysu.npms.pojo.ApprovalInfo;
import com.neusoft.ysu.npms.pojo.DepartmentInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者：刘金秋
 * @since 2024-06-18
 */
@Mapper
public interface ApprovalMapper extends BaseMapper<Approval> {

    Integer add(Approval approval);

    Integer deleteApproval(Approval approval);

    Integer updateApproval(Approval approval);

    List<Approval> selectAll();

    Approval findById(Approval approval);
    List<ApprovalInfo> getvillagelist(ApprovalInfo approvalInfo);
    List<ApprovalInfo> gettownlist(ApprovalInfo approvalInfo);
    List<ApprovalInfo> getcountylist(ApprovalInfo approvalInfo);
    List<ApprovalInfo> getcitylist(ApprovalInfo approvalInfo);
    List<ApprovalInfo> getprovincelist(ApprovalInfo approvalInfo);
    List<ApprovalInfo> getbacklist(ApprovalInfo approvalInfo);
    Integer applysuccess(ApprovalInfo approvalInfo);
    Integer applyfail(ApprovalInfo approvalInfo);
    Integer logout(ApprovalInfo approvalInfo);
}
